//
//  PersonalTableViewCell.m
//  SheShiDu
//
//  Created by 泉  姜 on 16/6/14.
//  Copyright © 2016年 单剑秋. All rights reserved.
//

#import "PersonalTableViewCell.h"

#define HEIGHT self.contentView.frame.size.height
#define WIDTH self.contentView.frame.size.width
@implementation PersonalTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.functionImgView = [[UIImageView alloc] init];
//        _functionImgView.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:_functionImgView];
        
        self.functionLabel = [[UILabel alloc] init];
//        _functionLabel.backgroundColor = [UIColor yellowColor];
        _functionLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:_functionLabel];
        
        self.telephoneLabel = [[UILabel alloc] init];
//        _telephoneLabel.backgroundColor = [UIColor redColor];
        _telephoneLabel.font = [UIFont systemFontOfSize:12];
        [self.contentView addSubview:_telephoneLabel];
        
        self.symbolImgView = [[UIImageView alloc] init];
//        _symbolImgView.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:_symbolImgView];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    _functionImgView.frame = CGRectMake(WIDTH * (28 / 750.0), HEIGHT * (29 / 95.0), WIDTH * (38 / 750.0), HEIGHT * (38 / 95.0));
    _functionLabel.frame = CGRectMake(WIDTH * (90 / 750.0), HEIGHT * (37 / 95.0), WIDTH * (120 / 750.0), HEIGHT * (23 / 95.0));
    _telephoneLabel.frame = CGRectMake(WIDTH * (486 / 750.0), HEIGHT * (41 / 95.0), WIDTH * (198 / 750.0), HEIGHT * (20 / 95.0));
    _symbolImgView.frame = CGRectMake(WIDTH * (710 / 750.0), HEIGHT * (33 / 95.0), WIDTH * (19 / 750.0), HEIGHT * (38 / 95.0));
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
